$text1: #303133;
$text2: #606266;
$text3: #909399;
$text4: #c0c4cc;

$white: #ffffff;
$black: #000000;
$red: #f56c6c;
$green: #67c23a;
$blue: #409eff;
$bg: #fafafa;

// 单行超出省略号
@mixin omit {
  overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

// 多行超出省略号
@mixin omit2 {
  word-break: break-fill;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

// 水平垂直居中
@mixin flex_center {
  display: flex;
  justify-content: center;
  align-items: center;
}

// 设置宽高 默认100%
@mixin set_w_h($w: fill, $h: fill) {
  @if ($w == fill) {
    width: 100%;
  } @else if ($w == auto) {
    width: auto;
  } @else {
    width: #{$w}px;
  }
  @if ($h == fill) {
    height: 100%;
  } @else if ($h == auto) {
    height: auto;
  } @else {
    height: #{$h}px;
  }
}

// 扩展点击区域(多用于移动端)
@mixin extend_click {
  position: relative;
  &:before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }
}